package com.getan.boot.common.annotation;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.getan.boot.common.json.DictSerializer;

import java.lang.annotation.*;

/**
 * 数据字典
 *
 * @author Bruce.Gong
 * @since 1.0.0-SNAPSHOT
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@JacksonAnnotationsInside
@JsonSerialize(using = DictSerializer.class)
public @interface Dict {

    String value() default "";

    String code() default "";

    String desc() default "";

}
